package com.example.excise06.service.dto;

import lombok.Data;

@Data
public class RoommateFaceDTO extends Roommate{
    private FaceItem faceItem;

    public RoommateFaceDTO(){}

    //为方便赋值，增加一个通过Roommate数据对象和人脸识别数据对象进行初始化的构造器
    public RoommateFaceDTO(Roommate roommate,FaceItem faceItem) {
        this.faceItem = faceItem;
        this.setId(roommate.getId());
        this.setRoomNickname(roommate.getRoomNickname());
        this.setSaySomething(roommate.getSaySomething());
        this.setStudentCode(roommate.getStudentCode());
    }

    public FaceItem getFaceItem(){
        return faceItem;
    }

    public void setFaceItem(FaceItem faceItem){
        this.faceItem = faceItem;
    }
}